009 security

大家好,欢迎回到本次讲座。
Hey guys welcome back in this lecture.

让我们继续并开始研究一些安全性。
Let's go ahead and start looking at some security.

那么我们如何在其中之一上设置安全性呢?
So how do we set up security on one of these things.

好吧,我们要做的第一件事就是进入这里并朝左下角走。
Well the first thing we're going to do is come in here and down towards the bottom left.

我们有这个系统,然后我们有分组的用户。
We have this system and then we have users in groups.

因此,让我们继续进入用户,我们将右键单击该用户并添加一个新用户,这个新用户将被称为经理。
So let's go ahead and come into users and we're going to right click on that and add a new user and this new user will be called manager.

听起来不错。
Sounds good.

经理的密码将是一二三,用一比三确认。
And the password for manager will be one two three will confirm that with a one to three.

我将点击“确定”。
And I'm going to hit OK.

现在我实际上已经创建了一个用户,现在我可以管理该人对某些事情的权限。
So now I've actually created a user and I can now manage that person's permissions on some things.

那么让我们看看如何做到这一点。
So let's see how to do that.

来到这里,我将双击运行时安全性,然后添加一个帐户。
Coming up here I'm going to double click on runtime security and I'm going to add an account.

因此,让我们继续查找我刚刚创建的用户。
So let's go ahead and look for that user I just created.

这是我们的经理将单击“确定”。
Here's our manager will click OK.

我们这里有不同的安全代码。
We have different security codes here.

A 到 P 我们可以为这些不同的代码设置权限是或否。
A through P And We can set permissions for these different codes yes or no.

然后我们可以将这些不同的代码用于基本上任何我们想要的东西,无论我们如何组织它们。
And then we can use those different codes for basically whatever we want however we want to organize those.

目前,在我们的 HDMI 中,我只想说我们的经理可以访问所有内容。
Throughout our HDMI for right now I'm just going to say that our manager has access to everything.

因此,我们将保持原样,继续前进并接近目标。
So we're going to leave this the way that it is and go ahead and hit close.

我们要保存更改吗?
Do we want to save changes.

绝对地。
Absolutely.

所以现在我们的经理需要能够登录。
So now our manager needs to be able to log in.

因此,我将在这里讨论对象,然后我们将进行登录。
So I'm going to come up here to objects come down here to advanced and we're going to head and take loggin.

所以我会在这里画一个鲁金。
So I will draw a luggin right about here.

你知道这个屏幕变得非常吵闹,所以我将继续打开屏幕 2,我将剪切我的登录并将其粘贴到屏幕上。
And you know what this screen is kind of getting to be pretty noisy so I'm going to go ahead and open up screen 2 and I'm going to cut my log in and paste that over here the screen too.

让我们继续删除一些导航,然后我将把之前的按钮向下移开。
And let's just go ahead and delete some of that navigation and I will move our previous button down and out of the way.

所以我已经登录了,我也将在这里访问高级对象,并且我将在下面创建一个注销,以备份到对象和高级。
So I've got a log in I'm also going to come up here to objects advanced and I will create a log out right below there back up to objects and advanced.

我会放一张密码表格,然后把它放在隔壁。
I will put a password form and I will put that right there next door.

现在我已经拿到了我的凸耳和其他东西,你会发现西摩的工厂谈话视图工作室在安全方面有一个很大的区别。
And now that I've got my lug and stuff there's one big difference you're going to see in security between factory talk view studio in Seymour in Seymour.

安全代码可以应用于每个单独的事物。
The security codes could be applied to each individual thing.

因此,一个按钮或一个数字条目,但在工厂顶部视图中,它们实际上应用于页面本身。
So a button or a numeric entry but in factory top view these are actually applied to the page itself.

所以我要来这里显示,我要创建一个新屏幕,在这个屏幕上我要继续,让我们复制我的坦克,这样我就没有空屏幕了然后我还要在那里放一个上一个按钮。
So I'm going to come over here to display and I'm going to create a new screen and on this screen I'm going to go ahead and let's just copy out my tanks so that I don't have an empty screen and then I'm also going to put a previous button on there as well.

所以现在我们至少有办法出去。
So now we've got at least a way to get back out.

我们有一个屏幕,所以如果我们可以到达这个屏幕,显然我们现在就可以访问这里,我将右键单击屏幕的空白区域,然后继续点击显示设置,您会看到正确的这里写着安全码。
And we've got a screen so if we can get to this screen obviously we've got access to be here now I'm going to right click on the white space of the screen and go ahead and hit display settings and you see right here it says security code.

还有一个通P..
And there's a through P..

好吧,如果它有一颗星,那就意味着任何人都可以进入,无论他们是否登录。
Well if it's got a star that means anybody can get in whether they're logged in or not.

但在这种情况下,我们不希望出现这种情况。
But in this case we don't want that to be the case.

因此,我们将继续使用安全代码 A,然后单击“应用”,然后单击“确定”。
So we're going to go ahead and just take security code A and hit apply and hit OK.

因此,现在您真正进入此屏幕的唯一方法是拥有安全代码。
So now the only way you can really get into this screen is if you've got security code.

现在我们已经完成了此设置,我们将需要一种方法来访问此屏幕。
So now that we've got this set up we are going to need a way to get to this screen.

所以我要过来这里并将其复制到按钮并将其粘贴到此处。
So I'm going to come over here and copy this as to button and paste it right here.

我们还需要保存此页面。
And we need to save this page as well.

我将把它保存为 SCC 以确保安全,然后在这篇文章中单击按钮,让我们继续更改显示以查看命中。
I'm going to save that as SCC for secured and then on this essay to button let's go ahead and change the display to get to se see hit.

好的。
OK.

我也会更改标签。
And I'll also change the label.

所以我们也希望这样说。
So we want that to say the as well.

好的。
OK.

现在,在运行测试之前,我们需要在此处设置另一件事。
Now before we run the test there's one other thing that we need to set on here.

如果我们回到运行时安全性,我们需要确保默认用户没有安全级别。
And if we go back into runtime security we need to make sure that the default user does not have level a security.

因此,让我们继续在这里说接受并确保只有经理有权访问安全代码。
So let's go ahead and say here accept and make sure that only the manager has access to security code.

A。

A.

因此,让我们继续并关闭并保存它,现在让我们测试这个应用程序。
So let's go ahead and close that save it and now let's test this application.

因此,我们点击上面的“Running Man”小图标,然后按照我们熟悉的方式等待,直到这个东西加载完毕,当它加载时,我们也应该能够进入屏幕。
So we click on our little Running Man icon up there and take our familiar wait until this thing loads up and when it loads up we should be able to get to screen too.

但在登录之前我们应该无法进入屏幕 3。
But we should not be able to get to screen 3 until we log in.

所以我们的应用程序中也有我们的屏幕。
So we're in our app there is our screen too.

您会看到访问被拒绝 当前登录的用户没有对 SCC 的安全访问权限。
And you see access is denied current logged in user does not have security access to SCC.

所以让我们清除它并关闭它。
So let's clear it let's close it.

我没有在这些按钮上放置标签,但这是我的登录按钮,我将选择用户。
And I didn't put labels on these buttons but this is my log in button and I'm going to select user.

我只需输入 manager,然后我们继续按 Enter 键,然后我们将获取密码,我的密码是 1 2 3 按 Enter 键,再次按 Enter 键。
And I'm just going to type in manager and let's go ahead and hit enter and then we'll take password and my password is 1 2 3 hit enter hit enter again.

现在我们实际上已经登录了,你瞧,如果我转到上一个页面,我可以进入我的安全页面,我可以单击底部按钮,这是我们的注销,果然,回到默认用户,我无法返回在。
And now we're actually logged in and lo and behold I can get to my security page if I go to a previous I can click that bottom button which is our log out and sure enough and back to the default user and I cannot get back in.

就是这样了。
So that's it.

这就是如何在工厂谈话应用程序内部进行安全保护。
That is how to do security inside a factory talk applications.

首先,您必须在用户下设置一个用户或一个组。
First you have to set up either a user or a group down here under users.

然后您将来到这里了解运行时安全性并启用您想要的功能。
Then you're going to come up here to runtime security and enable the things that you want.

对于这些用户,您需要确保为默认用户禁用这些功能。
For those users and you want to make sure to disable those things for the default user.

否则,无论如何,每个人都将能够涉足一切。
Otherwise everybody is going to be able to get into everything anyway.

所以有账号是没有用的。
So there's no use having accounts.

此时唯一需要向您展示的其他内容是我们在此处创建的其他密码内容。
And the only other thing left to show you at this point is this other password thing that we created right here.

真正做的只是让用户能够更改密码。
All that really does is gives the user the ability to change their password.

因此,您输入旧密码,然后输入新密码,或者如果您想将其从 1 更改为 3 更改为 1 3 5,您就可以在此处执行此操作。
So you put in your old password put in your new passwords or if you wanted to change it from 1 to 3 to 1 3 5 that's where you would do it.

我为没有创建标签并使所有这些东西变得美丽而道歉,但我真的很想为您提供信息并让您了解下一节课如何做这些东西,而不是让您花无数个小时看我美化东西。
And I apologize for not creating labels and making all of this stuff beautiful but I really want to get you the information and get you on to the next lecture knowing how to do this stuff rather than make you spend countless hours watching me beautify things.

如果一切看起来有点糟糕,我很抱歉,但希望你正在学习。
So sorry if everything looks a little bit bad but hopefully you're learning.

重要的是你所付出的代价以及如何建立 NHMRC。
The important thing what you're paying for and that's how to build NHMRC.

这就是本次讲座的内容,安全人员和我将看到下一个讲座。
So that's it for this lecture that security and I'll see the next one.

干杯。
Cheers.